import request from "../utils/request";

export const queryStuApi = (name,degree,clazzId,page,pageSize) => 
  request.get(`/students?name=${name}&degree=${degree}&clazzId=${clazzId}&page=${page}&pageSize=${pageSize}`)

export const addStuApi = (student) => request.post('/students',student)

export const queryByIdApi = (id) => request.get(`/students/${id}`)

export const updateStuApi = (student) => request.put('/students',student)

export const deleteStuApi = (ids) => request.delete(`/students/${ids}`)